package com.geline.sqlbackup.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 操作状态定义
 * @author mengx
 * @version 2020/10/30 16:30
 */
@AllArgsConstructor
@Getter
public enum StatusEnum {
    SUCCESS("0", "成功"),
    FAIL("1", "失败");

    private String code;
    private String desc;

    public String getLabel() {
        return desc;
    }

    public Object getValue() {
        return code;
    }
}
